package cn.zhuama.org.mapper;

import cn.zhuama.org.domain.Department;
import cn.zhuama.org.query.DepartmentQuery;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DepartmentMapper {

    void save(Department department);

    void del(Long id);

    void update(Department department);

    Department queryOne(Long id);

    List<Department> loadAll();
    //总数量
    Long queryCount(DepartmentQuery query);
    //一个数列的一部分
    List<Department> queryData(DepartmentQuery query);
}
